﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using MessageService.DataAccessService;

namespace MessageService
{
    [ServiceContract]
    interface IMessageService
    {
        [OperationContract]
        void SendMessage(Message message);

        [OperationContract]
        IEnumerable<Message> GetLastMessages(Uri address, int count);
        
        [OperationContract]
        Message GetLastMessage(Uri address);
    }
}
